package com.financing.wap.dao.impl;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IAccountWithdrawDao;
import com.financing.wap.dto.AccountWithdrawDTO;



@Repository("accountWithdrawDaoImpl")
@SuppressWarnings(value={"unchecked", "deprecation"})
public class AccountWithdrawDaoImpl extends BaseDaoImpl<AccountWithdrawDTO, java.lang.Integer> implements IAccountWithdrawDao {


	@Override
	public List<AccountWithdrawDTO> queryAccountWithdrawList(
			AccountWithdrawDTO accountWithdrawDTO) throws SQLException {
		return this.sqlMapClientTemplate.queryForList(SqlName.ACCOUNT_WITHDRAW_LIST,accountWithdrawDTO);
	}

	@Override
	public int updateAccountWithdraw(AccountWithdrawDTO accountWithdrawDTO)
			throws SQLException {
		return (Integer)this.getSqlMapClientTemplate().update(SqlName.ACCOUNT_WITHDRAW_UPDATE,accountWithdrawDTO);
	}

	@Override
	public int insertAccountWithdraw(AccountWithdrawDTO accountWithdrawDTO)
			throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.ACCOUNT_WITHDRAW_ADD, accountWithdrawDTO);
	}

	@Override
	public Class<AccountWithdrawDTO> getEntityClass() {
		return AccountWithdrawDTO.class;
	}


}
